package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.auto.MendaoTestMapper;
import com.model.auto.MendaoTest;
import com.service.IMendaoTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Service
public class MendaoTestServiceImpl extends ServiceImpl<MendaoTestMapper, MendaoTest> implements IMendaoTestService {
    @Autowired
    private MendaoTestMapper mendaoTestMapper;

    @Override
    public MendaoTest findOne(long id) {
        return mendaoTestMapper.findOne(id);
    }

    @Override
    public List<MendaoTest> getList(int type) {
        return mendaoTestMapper.getList(type);
    }

    @Override
    public void insertDate(MendaoTest mendaoTest) {
        mendaoTestMapper.insertDate(mendaoTest);
    }

    @Override
    public void updateDate(MendaoTest mendaoTest) {
        mendaoTestMapper.updateDate(mendaoTest);
    }
}
